package com.ruoze.bdp.entity.datasource;


public class DataSourceRequest {
    private Long clusterId;  // 集群ID
    private String dateType;  // 查询类型：mysql, doris, ck, hbase 【单选】
    private String name;    // 数据类型的名称
    private Integer pageNum; // 当前页码
    private Integer pageSize; // 每页条数

    public DataSourceRequest(Long clusterId, String dateType, String name, Integer pageNum, Integer pageSize) {
        this.clusterId = clusterId;
        this.dateType = dateType;
        this.name = name;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public DataSourceRequest(String clusterId, String dateType, String name, Integer pageNum, Integer pageSize) {
        this.clusterId = Long.valueOf(clusterId);
        this.dateType = dateType;
        this.name = name;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public Long getClusterId() {
        return clusterId;
    }

    public void setClusterId(Long clusterId) {
        this.clusterId = clusterId;
    }

    public String getDateType() {
        return dateType;
    }

    public void setDateType(String dateType) {
        this.dateType = dateType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
